package com.moonlight.mina;

public class MinaPackage {
	private int len;
	
	private byte flag;
	
	private String content;
	
	public MinaPackage(byte flag , String content) {
		this.flag = flag;
		this.content = content;
		this.len = this.content.getBytes().length + 5;
	}

	public int getLen() {
		return len;
	}

	public void setLen(int len) {
		this.len = len;
	}

	public byte getFlag() {
		return flag;
	}

	public void setFlag(byte flag) {
		this.flag = flag;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return "MinaPackage [len=" + len + ", flag=" + flag + ", content=" + content + "]";
	}
	
	
}
